FROM registry.thunisoft.com:5000/rmfyzxfw/centos7.5-jdk17-skywalking-agent:1.0.0
MAINTAINER lvxch@thunisoft.com

ENV PARAMS=""

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo "Asia/Shanghai" > /etc/timezone

VOLUME /logs/rmfyzxfw/

ADD target/overseas-law-0.0.1-SNAPSHOT.jar /app.jar
ENV JAVA_OPTS="-XX:MaxRAMPercentage=85.0 -XX:MinRAMPercentage=50.0 -XX:+HeapDumpOnOutOfMemoryError" \
    SERVER_IP="nacos.base" \
    SERVER_PORT="8848" \
    SW_AGENT_NAME="rmfyzxfw-overseas-law" \
    SW_AGENT_COLLECTOR_BACKEND_SERVICES="skywalking-oap.base:11800"

ENTRYPOINT ["sh","-c","java -javaagent:/skywalking-agent/skywalking-agent.jar -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8  -jar $JAVA_OPTS $JVM /app.jar $PARAMS"]
